package idv.long.mcv.control.sub
{
	import idv.long.mcv.view.MainAppMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class InitAppViewCommand extends SimpleCommand
	{		
		public function InitAppViewCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			trace("InitAppViewCommand execute");
			
			var mainView:Object = notification.getBody();
			
			var mainMediator:MainAppMediator = new MainAppMediator(MainAppMediator.NAME, mainView);
			facade.registerMediator(mainMediator);
		}
		
	}
}